﻿<Window x:Class="Today.Options"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="550" Width="350" Background="Black" ResizeMode="CanMinimize" WindowStartupLocation="CenterScreen"
        Loaded="WindowLoaded">
    <Window.Resources>
        <Storyboard x:Key="SwapAnimRight" Completed="SwapAnimRightCompleted">
            <DoubleAnimation Storyboard.TargetName="GeneralPage" Storyboard.TargetProperty="(RenderTransform).X" To="-350" Duration="0:0:0.3"/>
            <DoubleAnimation Storyboard.TargetName="AboutPage" Storyboard.TargetProperty="(RenderTransform).X" To="0" Duration="0:0:0.3"/>
        </Storyboard>
        <Storyboard x:Key="SwapAnimLeft" Completed="SwapAnimLeftCompleted">
            <DoubleAnimation Storyboard.TargetName="GeneralPage" Storyboard.TargetProperty="(RenderTransform).X" To="0" Duration="0:0:0.3"/>
            <DoubleAnimation Storyboard.TargetName="AboutPage" Storyboard.TargetProperty="(RenderTransform).X" To="350" Duration="0:0:0.3"/>
        </Storyboard>
    </Window.Resources>
    <DockPanel>
        <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,0,0,10">
            <Button Name="OkButton" Content="ok" Width="120" Margin="0,0,-15,0" Click="OkButtonClick"/>
            <Button Name="CancelButton" Content="cancel" Width="120" Margin="0,0,-15,0" Click="CancelButtonClick"/>
            <Button Name="ApplyButton" Content="apply" IsEnabled="False" Width="120" Margin="0,0,-5,0" Click="ApplyButtonClick"/>
        </StackPanel>
        <StackPanel Margin="10">
            <TextBlock Name="SettingsTitle" Text="SETTINGS" Foreground="White"/>
            <StackPanel Orientation="Horizontal">
                <TextBlock Name="GeneralPageHeader" Text="general" Foreground="White" FontSize="36" MouseLeftButtonDown="GeneralPageHeaderMouseLeftButtonDown"/>
                <TextBlock Name="AboutPageHeader" Text="about" Foreground="Gray" FontSize="36" Margin="15,0,0,0" MouseLeftButtonDown="AboutPageHeaderMouseLeftButtonDown"/>
            </StackPanel>
            <Grid Margin="0,10,0,0">
                <StackPanel Name="GeneralPage">
                    <StackPanel.RenderTransform>
                        <TranslateTransform/>
                    </StackPanel.RenderTransform>
                    <CheckBox Name="ChangeBgCheckBox" Content="Change background with season" Click="SettingsChanged"/>
                </StackPanel>
                <StackPanel Name="AboutPage" Visibility="Visible">
                    <StackPanel.RenderTransform>
                        <TranslateTransform X="350"/>
                    </StackPanel.RenderTransform>
                    <StackPanel Orientation="Horizontal">
                        <Image Name="IconImage" Source="Resources/icon.png" Width="42" Height="42"/>
                        <TextBlock Name="WidgetName" Text="Today widget" Foreground="LightGray" FontSize="18" VerticalAlignment="Center" Margin="5,0,0,0"/>
                    </StackPanel>
                    <TextBlock Name="WidgetDescription" Text="Widget that shows the current date." Foreground="LightGray" FontSize="14" VerticalAlignment="Center" Margin="0,0,0,0"/>
                    <TextBlock Name="WidgetVersion" Text="Version: 2.0" Foreground="LightGray" FontSize="14" VerticalAlignment="Center" Margin="0,0,0,0"/>
                    <TextBlock Text="© Stealth 2011. All rights reserved." Foreground="LightGray" FontSize="14" VerticalAlignment="Center" Margin="0,0,0,0"/>
                </StackPanel>
            </Grid>
        </StackPanel>
    </DockPanel>
</Window>
